﻿// File:    CRepairNote.java
// Author:  甘孝俭
// email:   ganxiaojian@hotmail.com 
// QQ:      154986287
// http://www.8088net.com
// 协议声明：本软件为开源系统，遵循国际开源组织协议。任何单位或个人可以使用或修改本软件源码，
//          可以用于作为非商业或商业用途，但由于使用本源码所引起的一切后果与作者无关。
//          未经作者许可，禁止任何企业或个人直接出售本源码或者把本软件作为独立的功能进行销售活动，
//          作者将保留追究责任的权利。
// Created: 2015/12/6 10:23:34
// Purpose: Definition of Class CRepairNote

package com.ErpCoreModel.Store;

import java.lang.reflect.Type;
import java.util.Date;
import java.util.HashMap;
import java.util.UUID;
import com.ErpCoreModel.Framework.CBaseObject;
import com.ErpCoreModel.Framework.Util;
import com.ErpCoreModel.Framework.CValue;

public class CRepairNote extends CBaseObject
{

    public CRepairNote()
    {
        TbCode = "XS_RepairNote";
        ClassName = "com.ErpCoreModel.Store.CRepairNote";

    }

    
        public String getCode()
        {
            if (m_arrNewVal.containsKey("code"))
                return m_arrNewVal.get("code").StrVal;
            else
                return "";
        }
        public void setCode(String value)
        {
            if (m_arrNewVal.containsKey("code"))
                m_arrNewVal.get("code").StrVal = value;
            else
            {
                CValue val = new CValue();
                val.StrVal = value;
                m_arrNewVal.put("code", val);
            } 
       }
        public String getCustomer()
        {
            if (m_arrNewVal.containsKey("customer"))
                return m_arrNewVal.get("customer").StrVal;
            else
                return "";
        }
        public void setCustomer(String value)
        {
            if (m_arrNewVal.containsKey("customer"))
                m_arrNewVal.get("customer").StrVal = value;
            else
            {
                CValue val = new CValue();
                val.StrVal = value;
                m_arrNewVal.put("customer", val);
            } 
       }
        public String getTel()
        {
            if (m_arrNewVal.containsKey("tel"))
                return m_arrNewVal.get("tel").StrVal;
            else
                return "";
        }
        public void setTel(String value)
        {
            if (m_arrNewVal.containsKey("tel"))
                m_arrNewVal.get("tel").StrVal = value;
            else
            {
                CValue val = new CValue();
                val.StrVal = value;
                m_arrNewVal.put("tel", val);
            } 
       }
        public String getAddr()
        {
            if (m_arrNewVal.containsKey("addr"))
                return m_arrNewVal.get("addr").StrVal;
            else
                return "";
        }
        public void setAddr(String value)
        {
            if (m_arrNewVal.containsKey("addr"))
                m_arrNewVal.get("addr").StrVal = value;
            else
            {
                CValue val = new CValue();
                val.StrVal = value;
                m_arrNewVal.put("addr", val);
            } 
       }
        public UUID getSP_Product_id()
        {
            if (m_arrNewVal.containsKey("sp_product_id"))
                return m_arrNewVal.get("sp_product_id").GuidVal;
            else
                return Util.GetEmptyUUID();
        }
        public void setSP_Product_id(UUID value)
        {
            if (m_arrNewVal.containsKey("sp_product_id"))
                m_arrNewVal.get("sp_product_id").GuidVal = value;
            else
            {
                CValue val = new CValue();
                val.GuidVal = value;
                m_arrNewVal.put("sp_product_id", val);
            }
        }
        public String getSpecification()
        {
            if (m_arrNewVal.containsKey("specification"))
                return m_arrNewVal.get("specification").StrVal;
            else
                return "";
        }
        public void setSpecification(String value)
        {
            if (m_arrNewVal.containsKey("specification"))
                m_arrNewVal.get("specification").StrVal = value;
            else
            {
                CValue val = new CValue();
                val.StrVal = value;
                m_arrNewVal.put("specification", val);
            } 
       }
        public double getNum()
        {
            if (m_arrNewVal.containsKey("num"))
                return m_arrNewVal.get("num").DoubleVal;
            else
                return 0;
        }
        public void setNum(double value)
        {
            if (m_arrNewVal.containsKey("num"))
                m_arrNewVal.get("num").DoubleVal = value;
            else
            {
                CValue val = new CValue();
                val.DoubleVal = value;
                m_arrNewVal.put("num", val);
            }
        }
        public Date getSaleDate()
        {
    	    if (m_arrNewVal.containsKey("saledate"))
                return m_arrNewVal.get("saledate").DatetimeVal;
            else
                return new Date(System.currentTimeMillis());
        }
        void setSaleDate(Date value)
        {      
            if (m_arrNewVal.containsKey("saledate"))
                m_arrNewVal.get("saledate").DatetimeVal=value;
            else
            {
                CValue val = new CValue();
                val.DatetimeVal= value;
                m_arrNewVal.put("saledate", val);
            }
        }
        public String getCause()
        {
            if (m_arrNewVal.containsKey("cause"))
                return m_arrNewVal.get("cause").StrVal;
            else
                return "";
        }
        public void setCause(String value)
        {
            if (m_arrNewVal.containsKey("cause"))
                m_arrNewVal.get("cause").StrVal = value;
            else
            {
                CValue val = new CValue();
                val.StrVal = value;
                m_arrNewVal.put("cause", val);
            } 
       }
        public String getResult()
        {
            if (m_arrNewVal.containsKey("result"))
                return m_arrNewVal.get("result").StrVal;
            else
                return "";
        }
        public void setResult(String value)
        {
            if (m_arrNewVal.containsKey("result"))
                m_arrNewVal.get("result").StrVal = value;
            else
            {
                CValue val = new CValue();
                val.StrVal = value;
                m_arrNewVal.put("result", val);
            } 
       }
        public String getRepairPerson()
        {
            if (m_arrNewVal.containsKey("repairperson"))
                return m_arrNewVal.get("repairperson").StrVal;
            else
                return "";
        }
        public void setRepairPerson(String value)
        {
            if (m_arrNewVal.containsKey("repairperson"))
                m_arrNewVal.get("repairperson").StrVal = value;
            else
            {
                CValue val = new CValue();
                val.StrVal = value;
                m_arrNewVal.put("repairperson", val);
            } 
       }
        public Date getRepairDate()
        {
    	    if (m_arrNewVal.containsKey("repairdate"))
                return m_arrNewVal.get("repairdate").DatetimeVal;
            else
                return new Date(System.currentTimeMillis());
        }
        void setRepairDate(Date value)
        {      
            if (m_arrNewVal.containsKey("repairdate"))
                m_arrNewVal.get("repairdate").DatetimeVal=value;
            else
            {
                CValue val = new CValue();
                val.DatetimeVal= value;
                m_arrNewVal.put("repairdate", val);
            }
        }
        public double getRepairCharge()
        {
            if (m_arrNewVal.containsKey("repaircharge"))
                return m_arrNewVal.get("repaircharge").DoubleVal;
            else
                return 0;
        }
        public void setRepairCharge(double value)
        {
            if (m_arrNewVal.containsKey("repaircharge"))
                m_arrNewVal.get("repaircharge").DoubleVal = value;
            else
            {
                CValue val = new CValue();
                val.DoubleVal = value;
                m_arrNewVal.put("repaircharge", val);
            }
        }
        public UUID getB_Company_id()
        {
            if (m_arrNewVal.containsKey("b_company_id"))
                return m_arrNewVal.get("b_company_id").GuidVal;
            else
                return Util.GetEmptyUUID();
        }
        public void setB_Company_id(UUID value)
        {
            if (m_arrNewVal.containsKey("b_company_id"))
                m_arrNewVal.get("b_company_id").GuidVal = value;
            else
            {
                CValue val = new CValue();
                val.GuidVal = value;
                m_arrNewVal.put("b_company_id", val);
            }
        }
        public String getAttn()
        {
            if (m_arrNewVal.containsKey("attn"))
                return m_arrNewVal.get("attn").StrVal;
            else
                return "";
        }
        public void setAttn(String value)
        {
            if (m_arrNewVal.containsKey("attn"))
                m_arrNewVal.get("attn").StrVal = value;
            else
            {
                CValue val = new CValue();
                val.StrVal = value;
                m_arrNewVal.put("attn", val);
            } 
       }
        public String getRemarks()
        {
            if (m_arrNewVal.containsKey("remarks"))
                return m_arrNewVal.get("remarks").StrVal;
            else
                return "";
        }
        public void setRemarks(String value)
        {
            if (m_arrNewVal.containsKey("remarks"))
                m_arrNewVal.get("remarks").StrVal = value;
            else
            {
                CValue val = new CValue();
                val.StrVal = value;
                m_arrNewVal.put("remarks", val);
            } 
       }
}
